package com.gzdh.device.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gzdh.device.system.dto.UserAuthInfoDTO;
import com.gzdh.device.system.entity.SysUser;
import com.gzdh.device.system.model.MenuTreeModel;
import com.gzdh.device.system.vo.AccountAllVo;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

import java.util.List;

public interface SysUserService extends IService<SysUser> {

    UserAuthInfoDTO loadUserByUsername(String userName) throws UsernameNotFoundException;

    IPage<AccountAllVo> getAccountAllByPage(int pageNo, int pageSize);


    List<MenuTreeModel> getUserMenu(String userId);

    List<String> getPermCode(String userId);
}
